{template "content","header"}

<!-- header -->
<header class="header bg6 clearfix">
<!-- <h4 class="fl"><a href="{MEMBER_PATH}" title="高见"><img src="{IMG_PATH2}icon/logo1.png" alt="高见"></a>学分商城</h4> -->
<h3 class="fl"><a href="{MEMBER_PATH}" title="返回上一级"><img src="/cdn/images/icon/back.png" alt="返回上一级"></a></h3>
<span class="con ellipsis">学分商城</span>
<a href="{MEMBER_PATH}&c=jifen&a=howget" class="get_credits"><img src="{IMG_PATH2}icon/que1.png">学分规则</a>
</header>
<!-- / header -->

<div class="h_40"></div>

<!-- main -->
<main class="main">
<script type="text/javascript" src="{JS_PATH2}TouchSlide.js"></script>
<script type="text/javascript">
$(function() {
	TouchSlide({
		slideCell: "#slideBox",
		titCell: ".hd ul",
		mainCell: ".bd ul",
		effect: "leftLoop",
		autoPage: true,
		autoPlay: true
	});
});
</script>
<section id="slideBox" class="slideBox">
	<div class="bd">
		<ul>
{pc:content action="lists" catid="4" num="5" order="listorder asc"}
{loop $data $r}
		<li><a href="{$r[url]}"><img src="{$r[thumb]}"></a></li>
{/loop}
{/pc}
		</ul>
	</div>
	<div class="hd">
		<ul></ul>
	</div>
</section>
<ul class="listmart clearfix bgwhite">
	<li>
	<a href="{MEMBER_PATH}&c=jifen&a=history">
	<img src="{IMG_PATH2}icon/xuefen1.png">学分
{php $userid= param::get_cookie('_userid');}
{if $userid}
<?php
$db_member = pc_base::load_model('member_model');
$info = $db_member->get_one(array('userid' => $userid));
?>
	<em>{$info[jifen]}</em>
{else}
	<em>请先登录</em>
{/if}
	</a>
	</li>
	<li><a href="{MEMBER_PATH}&c=other&a=buylist"><img src="{IMG_PATH2}icon/xuefen2.png">兑换记录</a></li>
</ul>

<div class="mall_title">精选商品</div>
<ul class="mallList clearfix">
{pc:content action="lists" catid="$catid" num="20" order="id desc"}
{loop $data $r}
{if $r['kanjia']==1}
	<li style="position: relative;">
		<a href="show-{$catid}-{$r[id]}-1.html">
			<div class="img"><img src="{$r[thumb]}"><i class="new"></i></div>
			<span class="ellipsis">{$r[title]}</span>
			<div class="xuefen"><i></i>{if $r[price_new]==0}{$r[price_jifen]}{else}{$r[price_new]}{/if}</div>
			             
		</a>
		<!-- <div style="width: 48px;height: 48px;text-align: center;line-height: 48px;background: #9ACD32;color: #fff;border-radius: 24px;position: absolute;top: 5px;left: 5px;">砍</div> -->
	</li>
{else}
	<li>
		<a href="show-{$catid}-{$r[id]}-1.html">
			<div class="img"><img src="{$r[thumb]}"></div>
			<span class="ellipsis">{$r[title]}</span>
			<div class="xuefen"><i></i>{$r[price_jifen]}</div>               
		</a>
	</li>
{/if}
{/loop}
</ul>
<div class="mesTipsshop"></div>
</main>
<!-- / main -->

{template "content","footer"}